package com.example.ut.controller.request;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class CreateStudentRequest {
    @NotNull(message = "Name cannot be null")
    private String name;
    @Min(value = 1, message = "Age cannot be less than 1")
    @Max(value = 300, message = "Age cannot be greater than 300")
    private Integer age;
    private String sex;
    private String address;
    private String contactPhone;

    @NotNull(message = "Grade cannot be null")
    private Integer grade;
    @NotNull(message = "ClassNo cannot be null")
    private Integer classNo;
}
